package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.BuyerBean;
import com.project.bean.SellBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;

@Mapper
public interface ISellMapper extends BaseMapper<SellBean> {

    IPage<SellBean> findByItem(Page pageNO,
                                @Param("customerName") String supplierName,
                                @Param("startDate") LocalDate startDate,
                                @Param("endDate")LocalDate endDate);


    SellBean findById(Integer id);
}
